﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Navigation;
using Microsoft.Phone.Controls;
using Microsoft.Phone.Shell;

namespace CRMClient
{
    public partial class Main : PhoneApplicationPage
    {
        public Main()
        {
            InitializeComponent();
        }

        private void Button_Hold(object sender, System.Windows.Input.GestureEventArgs e)
        {
            NavigationService.Navigate(new Uri("/Views/AccountViews/AddAccount.xaml", UriKind.RelativeOrAbsolute));
        }

        private void Button_Click_Dec(object sender, RoutedEventArgs e)
        {
            
        }

        private void Button_Click(object sender, RoutedEventArgs e)
        {
            NavigationService.Navigate(new Uri("/Views/AccountViews/ListAccounts.xaml", UriKind.RelativeOrAbsolute));
        }

        private void ApplicationBarMenuItem_Click(object sender, EventArgs e)
        {

        }

        private void Button_Click_Contacts(object sender, RoutedEventArgs e)
        {
            NavigationService.Navigate(new Uri("/Views/ContactViews/ListContacts.xaml", UriKind.RelativeOrAbsolute));
        }

        private void Button_Hold_AddContact(object sender, System.Windows.Input.GestureEventArgs e)
        {
            NavigationService.Navigate(new Uri("/Views/ContactViews/AddContact.xaml", UriKind.RelativeOrAbsolute));
        }

    }
}